package com.changli08.innerClass.exer;

public class InnerClassTest {
    public static void main(String[] args) {
        InnerClass ic1 = new InnerClass();
        InnerClass.InnerInnerClass iic1 = ic1.new InnerInnerClass();
        iic1.test();

//        匿名内部类
        new Object(){
            public void test(){
                System.out.println("work");

            }
        }.test();
    }
}
class InnerClass {
    class InnerInnerClass extends Object{
        public void test (){
            System.out.println("work");
        }

    }

}
